package com.framework.Module.flow.flowauth;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;


public class Tableflowauth extends Table {


    protected void initTable() {
        this.tablename   = "flowauth";
        this.tablenamesm = "模块权限";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "916",
                "isxt", "2",
                "summary", "{recename}",
                "imgurl","https://xinhu-1251238447.file.myqcloud.com/img/19575.png",
                "istj","1"
        });
        this.addfields("modeid", "int(11)", "0", "对应模块", new String[]{
                "isbt","1",
                "islb","0",
                "attr","readonly"
        });
        this.addfields("recename", "varchar(1000)", "", "适用对象@receid@选择人员设置权限", new String[]{
                "isss","1",
                "isbt","1",
                "fieldstype","changedeptusercheck",
        });
        this.addfields("receid", "varchar(1000)", "", "适用对象人员ID", new String[]{
                "islu","0",
                "islb","0",
        });
        this.addfields("type", "tinyint(1)", "0", "类型@0|查看,1|添加,2|编辑,3|删除,4|导入,5|导出", new String[]{
                "fieldstype","select",
                "isbt","1",
        });
        this.addfields("where", "varchar(500)", "", "条件@@写主表上的SQL条件不写就全部", new String[]{
                "islb","1",
                "fieldstype","textarea",
                "isalign","1"
        });
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islu","0",
                "islb","1",
        });
        this.addfields("explain", "varchar(500)", "", "说明", new String[]{
                "islb","1",
                "fieldstype","textarea",
                "isalign","1"
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用该权限", new String[]{
                "isss","0",
                "iseditlx","1",
                "fieldstype","checkbox"
        });
        this.addfields("cid", "KEY", "`cid`", "单位ID");


    }

}
